package cn.ys.org.domain;

import cn.ys.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private Long id;
    @NotBlank(message = "名字不能为空")
    private String username;
    @NotBlank(message = "邮箱不能为空")
    private String email;
    @NotBlank(message = "手机号不能为空")
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfo_id;
    private Long shop_id;

    // 所属部门
    private Department manager;

    // 二次密码
    private String comfirmPassword;

    // 员工角色
    private List<Long> roles;
}
